import QtQuick 1.0

Item {
    id: label
    property string backgroundColor: root.constants.defaultBackgroundColor
    property string backgroundColorAccent: root.constants.highlightColor
    property string foregroundColor: root.constants.highlightColorAccent
    property bool gradientFromLeftToRight: true

    Rectangle {
        width: parent.height
        height: parent.width
        anchors.centerIn: parent
        radius: height * root.constants.relativeLabelRadius
        rotation: -90
        border.width: root.constants.defaultBorderWidth
        border.color: foregroundColor
        smooth: true

        gradient: Gradient {
            GradientStop {
                position: 0.0;
                color: label.gradientFromLeftToRight ?
                           label.backgroundColorAccent : label.backgroundColor;
            }
            GradientStop {
                position: 1.0;
                color: label.gradientFromLeftToRight ?
                           label.backgroundColor : label.backgroundColorAccent;
            }
        }
    }
}

// End of file.
